#ifndef MEMORYPOOL_H
#define MEMORYPOOL_H

#include "util_global.h"
#include <boost/noncopyable.hpp>

class MemoryPool : protected boost::noncopyable
{
public:
    MemoryPool();
    ~MemoryPool();

    void *alloc(size_t n);
    void free(void *p, size_t n);
    bool isFromThis(void *p);
};

#endif // MEMORYPOOL_H
